package com.itheima.bytewenti;

import java.io.FileInputStream;
import java.io.IOException;
/*
解决一下字节流读取的中文问题

 */
public class Demo02 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("day13\\a.txt");
        byte[] bytes=new byte[1024];
        int len = fis.read(bytes);
        String s = new String(bytes, 0, len);
        System.out.println(s);
    }
}
